package net.xuwu.marry.service.file.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import net.xuwu.marry.service.file.bean.FristLevelBean;
import net.xuwu.marry.service.file.bean.SecondLevelBean;
import net.xuwu.marry.service.file.dao.IFileDao;

public class FileDaoImpl extends SqlMapClientDaoSupport implements IFileDao{

	/**
	 * 得到一级目录
	 */
	@Override
	public List<FristLevelBean> getFristLevel() {
		return this.getSqlMapClientTemplate().queryForList("file.get-frist-level");
	}

	/**
	 * 得到二级目录
	 */
	@Override
	public List<SecondLevelBean> getSecondLevel(int fristLevelId) {
		
		return this.getSqlMapClientTemplate().queryForList("file.get-second-level", fristLevelId);
	}

}
